package org.tarena.dang.entity;

import java.io.Serializable;
import java.util.List;

public class Categrory implements Serializable{
	
	private static final long serialVersionUID = 1L;
	private int id;
	private int turn;
	private String enName;
	private String name;
	private String description;
	private int parentId;
	//追加属性,存储子类别
	private List<Categrory> subCats;
	//追加属性，存储当前类别包含的产品数量
	private int pnum;
	private int productId;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getTurn() {
		return turn;
	}
	public void setTurn(int turn) {
		this.turn = turn;
	}
	public String getEnName() {
		return enName;
	}
	public void setEnName(String enName) {
		this.enName = enName;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getParentId() {
		return parentId;
	}
	public void setParentId(int parentId) {
		this.parentId = parentId;
	}
	public List<Categrory> getSubCats() {
		return subCats;
	}
	public void setSubCats(List<Categrory> subCats) {
		this.subCats = subCats;
	}
	public int getPnum() {
		return pnum;
	}
	public void setPnum(int pnum) {
		this.pnum = pnum;
	}
	public int getProductId() {
		return productId;
	}
	public void setProductId(int productId) {
		this.productId = productId;
	}
	
	
	
}
